package dome02;

public class Person {
    private int age;
    public void satAge(){
        if (age<0 || age>120){
            System.out.println("年龄不合法");
        }else{
            this.age = age;
        }
    }
}
